package com.ycw.action;

import com.opensymphony.xwork2.ActionSupport;
import com.ycw.entity.User;
import com.ycw.service.UserService;

public class UserAction extends ActionSupport{
	private User user;
//	private int idd;
	private UserService userService;
	/*public int getId() {
		return idd;
	}

	public void setId(int id) {
		this.idd = id;
	}*/
	
	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String execute() throws Exception {
		user = userService.getUserByid(user.getId());
		return SUCCESS;
	}


}
